import request from "./request";

const getHttp = (url, params) => {
    return request.get(url, { params })
}
const postHttp = (url, params) => {
    return request.post(url, params)
}
const putHttp = (url, params) => {
    return request.put(url, params)
}
const deleteHttp = (url, params) => {
    return request.delete(url, { data: params })
}

export {
    getHttp,
    postHttp,
    putHttp,
    deleteHttp
}